<?php
$this->pageTitle = '找回密码';
?>
<ul class="steps-bar steps-bar--dark cl tm10">
    <li class="step step--current step--post" style="z-index:3">
        <span class="step__num">1.</span>
        <span>确认账号</span>
        <span class="arrow__background"></span>
        <span class="arrow__foreground"></span>
    </li>
    <li class="step step--post" style="z-index:2">
        <span class="step__num">2.</span>
        <span>验证/修改</span>
        <span class="arrow__background"></span>
        <span class="arrow__foreground"></span>
    </li>
    <li class="step step--post" style="z-index:1">
        <span class="step__num">3.</span>
        <span>完成</span>
        <span class="arrow__background"></span>
        <span class="arrow__foreground"></span>
    </li>
</ul>
<div id="tabs" class="zhbform loginlayer clpd_t">
    <ul class="cl">
        <li class="on"><?php echo CHtml::link('邮箱找回密码', array('member/getpwdbyemail')); ?></li>
        <li><?php echo CHtml::link('手机找回密码', array('member/getpwdbymobile')); ?></li>
    </ul>
    <div id="emailbox">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'method' => 'POST',
//            'action' => '/forgotpwd/done',
            'id' => 'email-getpwd-form',
//            'enableAjaxValidation' => false,
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
        ?>
        <div class="infolist cols1 cl tm20">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'email'); ?></div>
                <div class="inp cl"><div class="text"><?php echo $form->textField($model, 'email', array('style' => 'width:207px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl clpd_all">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'email'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl" style="width:275px;">
                    <?php echo CHtml::submitButton('下一步', array('class' => 'submit submit_blue z')); ?>
                </div>
            </div>
        </div>
        <?php $this->endWidget(); ?>
    </div>
</div>
<span id="ajaxout"></span>
